﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Unity;
using Microsoft.Practices.ServiceLocation;
using RentAWorker.Business.Interfaces;

namespace Services
{
    public class ServicesModule : IModule
    {
        private IUnityContainer Container { get; set; }

        public ServicesModule(IUnityContainer container)
        {
            this.Container = container;
        }

        public void Initialize()
        {
            RegisterTypes();
        }

        private void RegisterTypes()
        {
            this.Container.RegisterType<IManageResourceService, DummyResourceManagementService>();
            this.Container.RegisterType<IManageCustomerService, DummyCustomerManagementService>();
            this.Container.RegisterType<ICustomerService, DummyCustomerManagementService>();
            this.Container.RegisterType<IRentRequestService,DummyRentRequestService>();

        }
    }
}
